function generateRandomString() {
  const length = Math.floor(Math.random() * 10) + 3 // 随机长度，范围为 1 到 10
  const characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
  let result = ""

  for (let i = 0; i < length; i++) {
    const randomIndex = Math.floor(Math.random() * characters.length)
    result += characters[randomIndex]
  }

  return result
}
module.exports = {
  generateRandomString,
}
